package c.h.a.z;

import com.liuzh.deviceinfo.card.CpuStatusCard.c;
import java.util.ArrayList;

/* compiled from: lambda */
public final /* synthetic */ class g implements Runnable {
    public final /* synthetic */ c a;
    public final /* synthetic */ ArrayList b;

    public /* synthetic */ g(c cVar, ArrayList arrayList) {
        this.a = cVar;
        this.b = arrayList;
    }

    /* JADX WARNING: Removed duplicated region for block: B:171:0x00e3 A:{SYNTHETIC, EDGE_INSN: B:171:0x00e3->B:29:0x00e3 ?: BREAK  , EDGE_INSN: B:171:0x00e3->B:29:0x00e3 ?: BREAK  } */
    /* JADX WARNING: Removed duplicated region for block: B:27:0x00d6 A:{LOOP_END, LOOP:3: B:23:0x00c4->B:27:0x00d6} */
    /* JADX WARNING: Removed duplicated region for block: B:179:0x0177 A:{SYNTHETIC, EDGE_INSN: B:179:0x0177->B:57:0x0177 ?: BREAK  , EDGE_INSN: B:179:0x0177->B:57:0x0177 ?: BREAK  } */
    /* JADX WARNING: Removed duplicated region for block: B:55:0x016e A:{LOOP_END, LOOP:5: B:51:0x015a->B:55:0x016e} */
    /* JADX WARNING: Missing block: B:17:0x00a0, code skipped:
            if (r8[r20 - 1] < r8[r20 + 1]) goto L_0x00b5;
     */
    /* JADX WARNING: Missing block: B:46:0x0144, code skipped:
            if (r9[r6 - 1] < r9[r6 + 1]) goto L_0x0151;
     */
    public final void run() {
        /*
        r28 = this;
        r0 = r28;
        r1 = r0.a;
        r2 = r0.b;
        r4 = new com.liuzh.deviceinfo.card.CpuStatusCard$b;
        r3 = r1.d;
        r4.m7663init(r3, r2);
        r3 = r3.size();
        r5 = r4.b;
        r5 = r5.size();
        r6 = new java.util.ArrayList;
        r6.<init>();
        r7 = new java.util.ArrayList;
        r7.<init>();
        r8 = new b.p.b.n$e;
        r9 = 0;
        r8.m639init(r9, r3, r9, r5);
        r7.add(r8);
        r8 = r3 + r5;
        r3 = r3 - r5;
        r3 = java.lang.Math.abs(r3);
        r3 = r3 + r8;
        r5 = r3 * 2;
        r8 = new int[r5];
        r9 = new int[r5];
        r5 = new java.util.ArrayList;
        r5.<init>();
    L_0x003d:
        r10 = r7.isEmpty();
        r11 = 1;
        if (r10 != 0) goto L_0x0284;
    L_0x0044:
        r10 = r7.size();
        r10 = r10 - r11;
        r10 = r7.remove(r10);
        r10 = (b.p.b.n.e) r10;
        r12 = r10.a;
        r13 = r10.b;
        r14 = r10.c;
        r15 = r10.d;
        r13 = r13 - r12;
        r15 = r15 - r14;
        if (r13 < r11) goto L_0x01bf;
    L_0x005b:
        if (r15 >= r11) goto L_0x005f;
    L_0x005d:
        goto L_0x01bf;
    L_0x005f:
        r11 = r13 - r15;
        r16 = r13 + r15;
        r16 = r16 + 1;
        r0 = r16 / 2;
        r16 = r3 - r0;
        r17 = r2;
        r2 = r16 + -1;
        r16 = r3 + r0;
        r18 = r1;
        r1 = r16 + 1;
        r16 = r7;
        r7 = 0;
        java.util.Arrays.fill(r8, r2, r1, r7);
        r2 = r2 + r11;
        r1 = r1 + r11;
        java.util.Arrays.fill(r9, r2, r1, r13);
        r1 = r11 % 2;
        if (r1 == 0) goto L_0x0084;
    L_0x0082:
        r1 = 1;
        goto L_0x0085;
    L_0x0084:
        r1 = 0;
    L_0x0085:
        r2 = 0;
    L_0x0086:
        if (r2 > r0) goto L_0x01b7;
    L_0x0088:
        r7 = -r2;
        r19 = r0;
        r0 = r7;
    L_0x008c:
        if (r0 > r2) goto L_0x0123;
    L_0x008e:
        if (r0 == r7) goto L_0x00b1;
    L_0x0090:
        if (r0 == r2) goto L_0x00a3;
    L_0x0092:
        r20 = r3 + r0;
        r21 = r20 + -1;
        r22 = r5;
        r5 = r8[r21];
        r20 = r20 + 1;
        r21 = r10;
        r10 = r8[r20];
        if (r5 >= r10) goto L_0x00a7;
    L_0x00a2:
        goto L_0x00b5;
    L_0x00a3:
        r22 = r5;
        r21 = r10;
    L_0x00a7:
        r5 = r3 + r0;
        r5 = r5 + -1;
        r5 = r8[r5];
        r5 = r5 + 1;
        r10 = 1;
        goto L_0x00bc;
    L_0x00b1:
        r22 = r5;
        r21 = r10;
    L_0x00b5:
        r5 = r3 + r0;
        r5 = r5 + 1;
        r5 = r8[r5];
        r10 = 0;
    L_0x00bc:
        r20 = r5 - r0;
        r27 = r20;
        r20 = r6;
        r6 = r27;
    L_0x00c4:
        if (r5 >= r13) goto L_0x00df;
    L_0x00c6:
        if (r6 >= r15) goto L_0x00df;
    L_0x00c8:
        r23 = r13;
        r13 = r12 + r5;
        r24 = r15;
        r15 = r14 + r6;
        r13 = r4.b(r13, r15);
        if (r13 == 0) goto L_0x00e3;
    L_0x00d6:
        r5 = r5 + 1;
        r6 = r6 + 1;
        r13 = r23;
        r15 = r24;
        goto L_0x00c4;
    L_0x00df:
        r23 = r13;
        r24 = r15;
    L_0x00e3:
        r6 = r3 + r0;
        r8[r6] = r5;
        if (r1 == 0) goto L_0x0115;
    L_0x00e9:
        r5 = r11 - r2;
        r5 = r5 + 1;
        if (r0 < r5) goto L_0x0115;
    L_0x00ef:
        r5 = r11 + r2;
        r5 = r5 + -1;
        if (r0 > r5) goto L_0x0115;
    L_0x00f5:
        r5 = r8[r6];
        r13 = r9[r6];
        if (r5 < r13) goto L_0x0115;
    L_0x00fb:
        r1 = new b.p.b.n$f;
        r1.m640init();
        r2 = r9[r6];
        r1.a = r2;
        r2 = r2 - r0;
        r1.b = r2;
        r0 = r8[r6];
        r2 = r9[r6];
        r0 = r0 - r2;
        r1.c = r0;
        r1.d = r10;
        r0 = 0;
        r1.e = r0;
        goto L_0x01cc;
    L_0x0115:
        r0 = r0 + 2;
        r6 = r20;
        r10 = r21;
        r5 = r22;
        r13 = r23;
        r15 = r24;
        goto L_0x008c;
    L_0x0123:
        r22 = r5;
        r20 = r6;
        r21 = r10;
        r23 = r13;
        r24 = r15;
        r0 = r7;
    L_0x012e:
        if (r0 > r2) goto L_0x01a5;
    L_0x0130:
        r5 = r0 + r11;
        r6 = r2 + r11;
        if (r5 == r6) goto L_0x0151;
    L_0x0136:
        r6 = r7 + r11;
        if (r5 == r6) goto L_0x0147;
    L_0x013a:
        r6 = r3 + r5;
        r10 = r6 + -1;
        r10 = r9[r10];
        r13 = 1;
        r6 = r6 + r13;
        r6 = r9[r6];
        if (r10 >= r6) goto L_0x0148;
    L_0x0146:
        goto L_0x0151;
    L_0x0147:
        r13 = 1;
    L_0x0148:
        r6 = r3 + r5;
        r6 = r6 + r13;
        r6 = r9[r6];
        r6 = r6 + -1;
        r10 = 1;
        goto L_0x0158;
    L_0x0151:
        r6 = r3 + r5;
        r6 = r6 + -1;
        r6 = r9[r6];
        r10 = 0;
    L_0x0158:
        r13 = r6 - r5;
    L_0x015a:
        if (r6 <= 0) goto L_0x0175;
    L_0x015c:
        if (r13 <= 0) goto L_0x0175;
    L_0x015e:
        r15 = r12 + r6;
        r15 = r15 + -1;
        r25 = r14 + r13;
        r26 = r11;
        r11 = r25 + -1;
        r11 = r4.b(r15, r11);
        if (r11 == 0) goto L_0x0177;
    L_0x016e:
        r6 = r6 + -1;
        r13 = r13 + -1;
        r11 = r26;
        goto L_0x015a;
    L_0x0175:
        r26 = r11;
    L_0x0177:
        r11 = r3 + r5;
        r9[r11] = r6;
        if (r1 != 0) goto L_0x01a0;
    L_0x017d:
        if (r5 < r7) goto L_0x01a0;
    L_0x017f:
        if (r5 > r2) goto L_0x01a0;
    L_0x0181:
        r6 = r8[r11];
        r13 = r9[r11];
        if (r6 < r13) goto L_0x01a0;
    L_0x0187:
        r1 = new b.p.b.n$f;
        r1.m640init();
        r0 = r9[r11];
        r1.a = r0;
        r0 = r0 - r5;
        r1.b = r0;
        r0 = r8[r11];
        r2 = r9[r11];
        r0 = r0 - r2;
        r1.c = r0;
        r1.d = r10;
        r0 = 1;
        r1.e = r0;
        goto L_0x01cc;
    L_0x01a0:
        r0 = r0 + 2;
        r11 = r26;
        goto L_0x012e;
    L_0x01a5:
        r26 = r11;
        r2 = r2 + 1;
        r0 = r19;
        r6 = r20;
        r10 = r21;
        r5 = r22;
        r13 = r23;
        r15 = r24;
        goto L_0x0086;
    L_0x01b7:
        r0 = new java.lang.IllegalStateException;
        r1 = "DiffUtil hit an unexpected case while trying to calculate the optimal path. Please make sure your data is not changing during the diff calculation.";
        r0.<init>(r1);
        throw r0;
    L_0x01bf:
        r18 = r1;
        r17 = r2;
        r22 = r5;
        r20 = r6;
        r16 = r7;
        r21 = r10;
        r1 = 0;
    L_0x01cc:
        if (r1 == 0) goto L_0x026f;
    L_0x01ce:
        r0 = r1.c;
        if (r0 <= 0) goto L_0x01d8;
    L_0x01d2:
        r0 = r20;
        r0.add(r1);
        goto L_0x01da;
    L_0x01d8:
        r0 = r20;
    L_0x01da:
        r2 = r1.a;
        r10 = r21;
        r5 = r10.a;
        r2 = r2 + r5;
        r1.a = r2;
        r2 = r1.b;
        r5 = r10.c;
        r2 = r2 + r5;
        r1.b = r2;
        r2 = r22.isEmpty();
        if (r2 == 0) goto L_0x01f8;
    L_0x01f0:
        r2 = new b.p.b.n$e;
        r2.m638init();
        r5 = r22;
        goto L_0x0206;
    L_0x01f8:
        r2 = r22.size();
        r2 = r2 + -1;
        r5 = r22;
        r2 = r5.remove(r2);
        r2 = (b.p.b.n.e) r2;
    L_0x0206:
        r6 = r10.a;
        r2.a = r6;
        r6 = r10.c;
        r2.c = r6;
        r6 = r1.e;
        if (r6 == 0) goto L_0x021b;
    L_0x0212:
        r6 = r1.a;
        r2.b = r6;
        r6 = r1.b;
        r2.d = r6;
        goto L_0x0234;
    L_0x021b:
        r6 = r1.d;
        if (r6 == 0) goto L_0x022a;
    L_0x021f:
        r6 = r1.a;
        r6 = r6 + -1;
        r2.b = r6;
        r6 = r1.b;
        r2.d = r6;
        goto L_0x0234;
    L_0x022a:
        r6 = r1.a;
        r2.b = r6;
        r6 = r1.b;
        r6 = r6 + -1;
        r2.d = r6;
    L_0x0234:
        r6 = r16;
        r6.add(r2);
        r2 = r1.e;
        if (r2 == 0) goto L_0x025f;
    L_0x023d:
        r2 = r1.d;
        if (r2 == 0) goto L_0x0250;
    L_0x0241:
        r2 = r1.a;
        r7 = r1.c;
        r2 = r2 + r7;
        r2 = r2 + 1;
        r10.a = r2;
        r1 = r1.b;
        r1 = r1 + r7;
        r10.c = r1;
        goto L_0x026b;
    L_0x0250:
        r2 = r1.a;
        r7 = r1.c;
        r2 = r2 + r7;
        r10.a = r2;
        r1 = r1.b;
        r1 = r1 + r7;
        r1 = r1 + 1;
        r10.c = r1;
        goto L_0x026b;
    L_0x025f:
        r2 = r1.a;
        r7 = r1.c;
        r2 = r2 + r7;
        r10.a = r2;
        r1 = r1.b;
        r1 = r1 + r7;
        r10.c = r1;
    L_0x026b:
        r6.add(r10);
        goto L_0x027a;
    L_0x026f:
        r6 = r16;
        r0 = r20;
        r10 = r21;
        r5 = r22;
        r5.add(r10);
    L_0x027a:
        r7 = r6;
        r2 = r17;
        r1 = r18;
        r6 = r0;
        r0 = r28;
        goto L_0x003d;
    L_0x0284:
        r18 = r1;
        r17 = r2;
        r0 = r6;
        r1 = b.p.b.n.a;
        java.util.Collections.sort(r0, r1);
        r1 = new b.p.b.n$c;
        r2 = 1;
        r3 = r1;
        r5 = r0;
        r6 = r8;
        r7 = r9;
        r8 = r2;
        r3.m636init(r4, r5, r6, r7, r8);
        r0 = r18;
        r2 = r0.d;
        r2.clear();
        r2 = r0.d;
        r3 = r17;
        r2.addAll(r3);
        r2 = new b.p.b.b;
        r2.m5116init(r0);
        r0 = r2 instanceof b.p.b.c;
        if (r0 == 0) goto L_0x02b3;
    L_0x02b0:
        r2 = (b.p.b.c) r2;
        goto L_0x02b9;
    L_0x02b3:
        r0 = new b.p.b.c;
        r0.m5119init(r2);
        r2 = r0;
    L_0x02b9:
        r0 = new java.util.ArrayList;
        r0.<init>();
        r3 = r1.e;
        r4 = r1.f;
        r5 = r1.a;
        r5 = r5.size();
        r5 = r5 + -1;
    L_0x02ca:
        if (r5 < 0) goto L_0x040d;
    L_0x02cc:
        r6 = r1.a;
        r6 = r6.get(r5);
        r6 = (b.p.b.n.f) r6;
        r7 = r6.c;
        r8 = r6.a;
        r8 = r8 + r7;
        r9 = r6.b;
        r9 = r9 + r7;
        r10 = " ";
        r11 = "unknown flag for pos ";
        r12 = 4;
        if (r8 >= r3) goto L_0x036c;
    L_0x02e3:
        r3 = r3 - r8;
        r13 = r1.g;
        if (r13 != 0) goto L_0x02ed;
    L_0x02e8:
        r2.a(r8, r3);
        goto L_0x036c;
    L_0x02ed:
        r3 = r3 + -1;
    L_0x02ef:
        if (r3 < 0) goto L_0x036c;
    L_0x02f1:
        r13 = r1.b;
        r14 = r8 + r3;
        r15 = r13[r14];
        r15 = r15 & 31;
        if (r15 == 0) goto L_0x0349;
    L_0x02fb:
        if (r15 == r12) goto L_0x0327;
    L_0x02fd:
        r12 = 8;
        if (r15 == r12) goto L_0x0327;
    L_0x0301:
        r12 = 16;
        if (r15 != r12) goto L_0x0311;
    L_0x0305:
        r12 = new b.p.b.n$d;
        r13 = 1;
        r12.m637init(r14, r14, r13);
        r0.add(r12);
        r16 = r7;
        goto L_0x0366;
    L_0x0311:
        r0 = new java.lang.IllegalStateException;
        r1 = c.b.a.a.a.h(r11, r14, r10);
        r2 = (long) r15;
        r2 = java.lang.Long.toBinaryString(r2);
        r1.append(r2);
        r1 = r1.toString();
        r0.<init>(r1);
        throw r0;
    L_0x0327:
        r12 = r13[r14];
        r12 = r12 >> 5;
        r13 = 0;
        r12 = b.p.b.n.c.b(r0, r12, r13);
        r13 = r12.b;
        r16 = r7;
        r7 = 1;
        r13 = r13 - r7;
        r2.b(r14, r13);
        r13 = 4;
        if (r15 != r13) goto L_0x0366;
    L_0x033c:
        r12 = r12.b;
        r12 = r12 - r7;
        r13 = r1.d;
        java.util.Objects.requireNonNull(r13);
        r13 = 0;
        r2.d(r12, r7, r13);
        goto L_0x0366;
    L_0x0349:
        r16 = r7;
        r7 = 1;
        r2.a(r14, r7);
        r12 = r0.iterator();
    L_0x0353:
        r13 = r12.hasNext();
        if (r13 == 0) goto L_0x0366;
    L_0x0359:
        r13 = r12.next();
        r13 = (b.p.b.n.d) r13;
        r14 = r13.b;
        r14 = r14 - r7;
        r13.b = r14;
        r7 = 1;
        goto L_0x0353;
    L_0x0366:
        r3 = r3 + -1;
        r12 = 4;
        r7 = r16;
        goto L_0x02ef;
    L_0x036c:
        r16 = r7;
        if (r9 >= r4) goto L_0x03e8;
    L_0x0370:
        r4 = r4 - r9;
        r3 = r1.g;
        if (r3 != 0) goto L_0x0379;
    L_0x0375:
        r2.c(r8, r4);
        goto L_0x03e8;
    L_0x0379:
        r4 = r4 + -1;
        if (r4 < 0) goto L_0x03e8;
    L_0x037d:
        r3 = r1.c;
        r7 = r9 + r4;
        r12 = r3[r7];
        r12 = r12 & 31;
        if (r12 == 0) goto L_0x03cd;
    L_0x0387:
        r13 = 4;
        if (r12 == r13) goto L_0x03b2;
    L_0x038a:
        r13 = 8;
        r14 = 16;
        if (r12 == r13) goto L_0x03b2;
    L_0x0390:
        if (r12 != r14) goto L_0x039c;
    L_0x0392:
        r3 = new b.p.b.n$d;
        r12 = 0;
        r3.m637init(r7, r8, r12);
        r0.add(r3);
        goto L_0x0379;
    L_0x039c:
        r0 = new java.lang.IllegalStateException;
        r1 = c.b.a.a.a.h(r11, r7, r10);
        r2 = (long) r12;
        r2 = java.lang.Long.toBinaryString(r2);
        r1.append(r2);
        r1 = r1.toString();
        r0.<init>(r1);
        throw r0;
    L_0x03b2:
        r3 = r3[r7];
        r3 = r3 >> 5;
        r7 = 1;
        r3 = b.p.b.n.c.b(r0, r3, r7);
        r3 = r3.b;
        r2.b(r3, r8);
        r3 = 4;
        if (r12 != r3) goto L_0x0379;
    L_0x03c3:
        r3 = r1.d;
        java.util.Objects.requireNonNull(r3);
        r3 = 0;
        r2.d(r8, r7, r3);
        goto L_0x0379;
    L_0x03cd:
        r3 = 1;
        r2.c(r8, r3);
        r7 = r0.iterator();
    L_0x03d5:
        r12 = r7.hasNext();
        if (r12 == 0) goto L_0x0379;
    L_0x03db:
        r12 = r7.next();
        r12 = (b.p.b.n.d) r12;
        r13 = r12.b;
        r13 = r13 + r3;
        r12.b = r13;
        r3 = 1;
        goto L_0x03d5;
    L_0x03e8:
        r7 = r16;
    L_0x03ea:
        r7 = r7 + -1;
        if (r7 < 0) goto L_0x0405;
    L_0x03ee:
        r3 = r1.b;
        r4 = r6.a;
        r4 = r4 + r7;
        r3 = r3[r4];
        r3 = r3 & 31;
        r8 = 2;
        if (r3 != r8) goto L_0x03ea;
    L_0x03fa:
        r3 = r1.d;
        java.util.Objects.requireNonNull(r3);
        r3 = 0;
        r8 = 1;
        r2.d(r4, r8, r3);
        goto L_0x03ea;
    L_0x0405:
        r3 = r6.a;
        r4 = r6.b;
        r5 = r5 + -1;
        goto L_0x02ca;
    L_0x040d:
        r2.e();
        return;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.h.a.z.g.run():void");
    }
}
